package net.khoroshev.wschat.model;

import java.util.Date;

public class ChatHistoryEntry {

    private String username;
    private Date  time;
    private String text;
    public ChatHistoryEntry(String username, Date time, String text) {
        super();
        this.username = username;
        this.time = time;
        this.text = text;
    }
    /**
     * @return the username
     */
    public String getUsername() {
        return username;
    }
    /**
     * @param username the username to set
     */
    public void setUsername(String username) {
        this.username = username;
    }
    /**
     * @return the time
     */
    public Date getTime() {
        return time;
    }
    /**
     * @param time the time to set
     */
    public void setTime(Date time) {
        this.time = time;
    }
    /**
     * @return the text
     */
    public String getText() {
        return text;
    }
    /**
     * @param text the text to set
     */
    public void setText(String text) {
        this.text = text;
    }
    
    
    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return String.format(
                "ChatHistoryEntry [username=%s, time=%s, text=%s]", username,
                time, text);
    }

}
